package cc.linker.steplink.crm.merchant.dao;


import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ShopGroupDao {
    List<Map<String, Object>> list(Map<String, Object> map);

    void del(String groupId);

    void delRelation(String groupId);

    int count(Map<String, Object> map);

    void insert(Map<String, Object> map);

    void edit(Map<String, Object> map);

    Integer countDefaultGoodsNum(Map<String, Object> map);

    void delRelationByGoodsIds(Long[] goodsIds);

    List<Map<String, Object>> listAll(@Param("orgId") String orgId, @Param("customerId") String customerId, @Param("type") String type, @Param("groupType") Integer groupType);

    Integer countAllGoodsNum(Map<String, Object> map);

    void delOrgRelation(String groupId);

    Map<String, Object> getGroupByGroupId(String groupId);

    List<Long> getGoodsWhereNotHaveGroup();

    void insertDefaultBatch(List<Long> goodsId);
}
